using Net35.Xrm.Sdk;
using Net35.Xrm.Sdk.Query;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class RollupRequest : OrganizationRequest
	{
		public EntityReference Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (EntityReference)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public QueryBase Query
		{
			get
			{
				if (base.Parameters.Contains("Query"))
				{
					return (QueryBase)base.Parameters["Query"];
				}
				return null;
			}
			set
			{
				base.Parameters["Query"] = value;
			}
		}
		public RollupType RollupType
		{
			get
			{
				if (base.Parameters.Contains("RollupType"))
				{
					return (RollupType)base.Parameters["RollupType"];
				}
				return RollupType.None;
			}
			set
			{
				base.Parameters["RollupType"] = value;
			}
		}
		public RollupRequest()
		{
			base.RequestName = "Rollup";
			this.Target = null;
			this.Query = null;
			this.RollupType = RollupType.None;
		}
	}
}
